package com.neepu.serviceImpl;

import com.neepu.dao.TeacherMapper;
import com.neepu.pojo.Teacher;
import com.neepu.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("TeacherService")
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> getTeacher() {
        return teacherMapper.getTeacher();
    }

    @Override
    public List<Teacher> getTeacherByContent(String content) {
        return teacherMapper.getTeacherByContent(content);
    }
}
